package uns.fit.gis.mapdrawer;

import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

public class CursorDrawer {
	private Sprite cursor;
	
	public CursorDrawer(Image cursor) {
		this.cursor = new Sprite(cursor, 20, 20);
		this.cursor.setFrame(0);
	}
	
	public void draw(Graphics g, int x, int y) {
		this.cursor.setPosition(x, y);
		this.cursor.paint(g);
	}
	
	public void draw(Graphics g) {
		this.cursor.paint(g);
	}
	
	public void move(int dx, int dy) {
		this.cursor.move(dx, dy);
	}
}
